import axios from '../axios.js';

const prefix = "/api/console";

const LOTTO_RULE = '/lottery/intro';

let lottoApi = {
    getLottoRule() {
        return axios.get(prefix + LOTTO_RULE,{});
    },
    editLottoRule({intro}) {
        return axios.post(prefix + LOTTO_RULE,{intro});
    }
}
export default lottoApi;